<#include "/header.html">

<link rel="stylesheet" href="/blog/c/index.css?${js_version}" />

<!--
	editormd :

	github：
	https://github.com/pandao/editor.md

	官网：
	https://pandao.github.io/editor.md/

	完整示例：
	https://pandao.github.io/editor.md/examples/full.html

	主题：
	http://pandao.github.io/editor.md/examples/themes.html?tdsourcetag=s_pcqq_aiomsg
-->
<link rel="stylesheet" type="text/css" href="/res/editormd/css/editormd.preview.min.css" />
<link rel="stylesheet" type="text/css" href="/res/editormd/css/editormd.min.css" />
<link rel="stylesheet" href="/myres/tio.editor.css?${js_version}" />

<script src="/res/editormd/editormd.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/res/editormd/lib/prettify.min.js" type="text/javascript" charset="utf-8"></script>


<div class="layui-container">
	<!-- layui-container layui-fluid -->
	<div class="tiosite_main">
		<div class="layui-row">
			<!-- 左侧广告 -->
			<#include "/ad_left.html">
			<form class="layui-form layui-form-pane" action="" id="form1">
				<!-- <input type="hidden" name="html" id="html"/>
				<input type="hidden" name="md" id="md"/> -->
				<div class="layui-col-md12">
					<div>
						<div class="layui-row">
							<div class="layui-row layui-col-space15 layui-form-item">
								<!-- <div class="layui-form layui-form-pane"> -->
									<div class="layui-col-md3">
										<label class="layui-form-label">分 类</label>
										<div class="layui-input-block">
											<select lay-verify="required" name="classid" lay-filter="column">
												<option></option>
												<option value="1">提问</option>
												<option value="2">分享</option>
												<option value="3">讨论</option>
												<option value="4">建议</option>
											</select>
										</div>
									</div>
									<div class="layui-col-md9">
										<label for="L_title" class="layui-form-label">标 题</label>
										<div class="layui-input-block">
											<input
												type="text"
												id="L_title"
												name="title"
												lay-verify="required"
												autocomplete="off"
												class="layui-input"
											/>
										</div>
									</div>
								<!-- </div> -->
							</div>

							<div class="layui-row">
								<div class="layui-form-item">

									<!-- id不能随便改，改了后，后台要跟着改，这个相当于表单的name -->
									<div class="editormd" id="blogeditor_container" style="z-index: 1">
										<textarea
											check="required&len<=50000"
											class="editormd-markdown-textarea"
											id="mdContent"
										></textarea>

										<!--
											第二个隐藏文本域，用来构造生成的HTML代码，方便表单POST提交，这里的name可以任意取，后台接受时以这个name键为准
										-->
										<textarea class="editormd-html-textarea" id="content"></textarea>
									</div>
								</div>
							</div>

							<div class="layui-row" style="display:none" id="reprint_url_div">
								<div class="layui-form-item">
									<label class="layui-form-label">转载地址</label>
									<div class="layui-input-block">
										<input type="text" name="fromurl" id="fromurl" required=""  placeholder="请输入转载地址" autocomplete="off" class="layui-input">
									</div>
								</div>
							</div>

							<div class="layui-row">
								<div class="layui-col-md12">
									<div style="margin-left: -10px;">
										<input type="checkbox" name="open" value=1 title="所有人可见" checked="" />
										<div class="layui-unselect1 layui-form-checkbox layui-form-checked">
											<span>所有人可见</span><i class="layui-icon layui-icon-ok"></i>
										</div>
							
										<input type="checkbox" name="allowcomment" value=1 title="允许评论" checked="" />
										<div class="layui-unselect layui-form-checkbox">
											<span>允许评论</span><i class="layui-icon layui-icon-ok"></i>
										</div>
							
										<input type="checkbox" lay-filter="original" name="original" id="original" title="原创" value=1 checked=""/>
										<div class="layui-unselect layui-form-checkbox">
											<span>原创</span><i class="layui-icon layui-icon-ok"></i>
										</div>




										<div class="layui-inline">
											<label class="layui-form-label"  style="width:60px; padding-left: 0px;padding-right: 0px;">排序号</label>
											<div class="layui-input-inline" style="width: 60px;" >
												<input type="text" name="orderno" autocomplete="off" lay-verify="required|number" class="layui-input" value=1 title="排序号，值越小越排在前面" placeholder="排序号">
											</div>
											<div class="layui-input-inline">
												<button style="margin-left:10px;" class="layui-btn" lay-filter="publish" lay-submit="">立即发布</button>
											</div>
											
										</div>
									</div>
								</div>
								<!-- <div class="layui-col-md3">
									
									<div class="layui-inline">
										<label class="layui-form-label"  style="width:60px; padding-left: 0px;padding-right: 0px;">排序号</label>
										<div class="layui-input-inline" style="width: 60px;" >
											<input type="text" name="orderno" autocomplete="off" lay-verify="required|number" class="layui-input" value=1 title="排序号，值越小越排在前面" placeholder="排序号">
										</div>
										<div class="layui-input-inline"  >
											<button style="margin-left:10px;" class="layui-btn" lay-filter="publish" lay-submit="">立即发布</button>
										</div>
										
									</div>
								</div> -->
							</div>

							
						</div>
					</div>
				</div>
			</form>
			<!-- 右侧广告 -->
		</div>
	</div>
</div>

<#include "/footer.html">

<script src="/blog/c/index.js?${js_version}"></script>
